package com.million.eduservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: studyboy
 * @Date: 2022/4/11  12:52
 */

@FeignClient(value = "service-order", fallback = OrdersClientFallback.class)
@Component
public interface OrdersClient {

    //根据课程id 和用户id 查询订单状态
    @GetMapping("/orderservice/order/selectOrderStatus/{courseId}/{memberId}")
    public boolean selectOrderStatus (@PathVariable("courseId") String courseId,
                                      @PathVariable("memberId") String memberId);
}
